﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Configuration;
using AjaxControlToolkit;
using System.Web.UI.WebControls;

namespace SeguradoraIA.Class
{
    public class PageBase : PageBaseMaster
    {

        public MasterPageBase MasterPageBase
        {
            get { return (MasterPageBase)Master; }
        }

        public PageBase()
        {
            this.Load += new EventHandler(this.Page_Load);
        }

        private void Page_Load(object sender, EventArgs e)
        {

        }

        public virtual void ShowAlert(string mensagem)
        {
            ShowAlert(mensagem, string.Empty);
        }

        public virtual void ShowAlert(string mensagem, string urlRedirect)
        {
            if (MasterPageBase != null)
                MasterPageBase.ExibirMensagem(mensagem, urlRedirect);
        }
    }
}